import layoutHeaderAside from '@/layout'

const meta = {
    auth: true
}

export default {
    path: '/pollution',
    name: 'pollution',
    meta,
    redirect: {
        name: 'pollution-gasRealTimeData'
    },
    component: layoutHeaderAside,
    children: (pre => [
        // {
        //     path: 'index',
        //     name: `${pre}index`,
        //     redirect: {
        //         name: 'home'
        //     },
        //     component: () => import('@/views/pollution/home'),
        //     meta: {
        //         ...meta,
        //         title: '首页',
        //         img: require('@/assets/pollution/首页.png'),
        //         isMenu: true
        //     }
        // },
        /* {
             path: 'equipment',
             name: `${pre}equipment`,
             component: () => import('@/views/pollution/equipment'),
             meta: {
                 ...meta,
                 title: '监测设备入库',
                 img: require('@/assets/pollution/监测设备入库.png'),
                 isMenu: true
             }
         },*/
        {
            path: 'realTimeData',
            name: `${pre}realTimeData`,
            component: () => import('@/views/pollution/WasteRealTime'),
            meta: {
                ...meta,
                title: '废水实时监测',
                img: require('@/assets/pollution/实时监测数据.png'),
                isMenu: true
            }
        },
        {
            path: 'gasRealTimeData',
            name: `${pre}gasRealTimeData`,
            component: () => import('@/views/pollution/WasteGasRealTime'),
            meta: {
                ...meta,
                title: '废气实时监测',
                img: require('@/assets/pollution/实时监测数据.png'),
                isMenu: true
            }
        },
        {
            path: 'pollutionmonitor',
            name: `${pre}pollutionmonitor`,
            component: () => import('@/views/pollution/PollutionMonitor'),
            meta: {
                ...meta,
                title: '实时监测数据',
                img: require('@/assets/pollution/实时监测数据.png'),
                isMenu: true
            }
        },
        {
            path: "abnormale",
            name: `${pre}abnormale`,
            component: () => import("@/views/pollution/PollutionAbnormal"),
            meta: {
                ...meta,
                title: "监测异常数据",
                img: require("@/assets/pollution/实时监测数据.png"),
                isMenu: true
            }
        },
        {
            path: 'Wastewater',
            name: `${pre}Wastewater`,
            component: () => import('@/views/pollution/Wastewater'),
            meta: {
                ...meta,
                title: '废水站点查询',
                img: require('@/assets/pollution/烟气查询.png'),
                isMenu: true
            }
        },
        {
            path: 'Wastegas',
            name: `${pre}Wastegas`,
            component: () => import('@/views/pollution/Wastegas'),
            meta: {
                ...meta,
                title: '废气站点查询',
                img: require('@/assets/pollution/烟气查询.png'),
                isMenu: true
            }
        },
        {
            path: 'historyData',
            name: `${pre}historyData`,
            component: () => import('@/views/pollution/historyData'),
            meta: {
                ...meta,
                title: '历史监测数据',
                img: require('@/assets/pollution/烟气设备信息.png'),
                isMenu: true
            }
        },
        // {
        //     path: 'equipmentInfo',
        //     name: `${pre}equipmentInfo`,
        //     component: () => import('@/views/pollution/equipmentInfo'),
        //     meta: {
        //         ...meta,
        //         title: '监测站点管理',
        //         img: require('@/assets/pollution/烟气设备信息.png'),
        //         isMenu: true
        //     }
        // },
        {
            path: 'equipmentRealTimeData',
            name: `${pre}equipmentRealTimeData`,
            component: () => import('@/views/pollution/equipmentRealTimeData'),
            meta: {
                ...meta,
                title: '监测站点视频',
                img: require('@/assets/pollution/烟气实时视频.png'),
                isMenu: true
            }
        },
        {
            path: 'enterprise',
            name: `${pre}enterprise`,
            component: () => import('@/views/pollution/Enterprise'),
            meta: {
                ...meta,
                title: '企业信息查询',
                img: require('@/assets/public/石化企业运维.png'),
                isMenu: true
            }
        },
        {
            path: 'control',
            name: `${pre}control`,
            component: () => import('@/views/pollution/Control'),
            meta: {
                ...meta,
                title: '仪器动态管控',
                img: require('@/assets/public/石化企业运维.png'),
                isMenu: true
            }
        },
        {
            path: 'pmeterhistory',
            name: `${pre}pmeterhistory`,
            component: () => import('@/views/pollution/PmeterHistory'),
            meta: {
                ...meta,
                title: '仪器修改历史',
                img: require('@/assets/public/石化企业运维.png'),
                isMenu: true
            }
        },
    ])('pollution-')
}
